package com.fasteat.netty.dto;

import java.io.Serializable;
import java.util.Date;

public class ChatMsg implements Serializable {
    private String id;//消息id，主要用于消息撤回
    private int type;//消息类型
    private String senderId;//发送者id
    private String receiverId;//接收者id
    private String msg;//聊天内容
    private long time;//发送时间,由客户端设定

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }
}
